'use strict';
import * as Koa from 'koa';
import { router, prefix } from '../middleware/router';
import { response } from '../middleware/result';
import { merchantwepaysetService } from '../service/merchantwepayset';


@prefix('payset')
class MerchantcashController {
   
    @router('/saveorupdate', { method: 'post' })
    async save(ctx: Koa.Context) {
       let res= await merchantwepaysetService.save(ctx.request.body);
        response(ctx, res);
    }

    @router('/query', { method: 'post' })
    async query(ctx: Koa.Context) {
       let res= await merchantwepaysetService.query(ctx.request.body);
        response(ctx, res);
    }


    @router('/logicdelete', { method: 'post' })
    async updatestatus(ctx: Koa.Context) {
       let res= await merchantwepaysetService.logicdelete(ctx.request.body);
        response(ctx, res);
    }


   

}